package com.lry;

import lombok.Data;
import org.apache.commons.lang3.StringUtils;

@Data
public class Msg {

    private String nodeName; //消息是由哪个节点发送的
    private String msg;

    public Msg(String nodeName, String msg) {
        assert StringUtils.isNotEmpty(nodeName);
        assert StringUtils.isNotEmpty(msg);
        this.nodeName = nodeName;
        this.msg = msg;
    }
}
